<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <!-- 引入 Bootstrap -->
        <link rel="stylesheet" href="./bootstrap-3.4.1-dist/css/bootstrap.css">
        <title>BS模板</title>
        <style>
            .item{
                height: 200px;
                border: 1px solid red;
            }
        </style>
    </head>
    <body>
        <!-- 容器（Container） -->
        <div class="container bg-danger">容器（Container） 含媒体查询的</div>
        <!-- 容器（Container-fluid） -->
        <div class="container-fluid bg-success">容器（Container-fluid） 内边距等小样式</div>
        <!-- Bootstrap 网格系统 -->
        <div class="container">
            <div class="row">
                <div class="item col-xs-2 col-md-2 text-center">1</div>
                <div class="item col-xs-2 col-xs-offset-1 col-xs-push-1 col-md-4"></div>
                <div class="item col-xs-3 col-md-2 text-success">222</div>
                <div class="item col-xs-5 col-md-2 text-danger">333</div>
                <div class="item col-xs-2 col-md-2"></div>
            </div>
            <form class="form-horizontal" role="form">
                <div class="form-group">
                    <label for="firstname" class="col-sm-2 control-label">名字</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="firstname" placeholder="请输入名字">
                    </div>
                </div>
                <div class="form-group">
                    <label for="lastname" class="col-sm-2 control-label">姓</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="lastname" placeholder="请输入姓">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox">请记住我
                            </label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">登录</button>
                    </div>
                </div>
            </form>
            <button class="btn btn-success active disabled">成功</button>

            <h2>创建模态框（Modal）</h2>
            <!-- 按钮触发模态框 -->
            <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">开始演示模态框</button>
            <!-- 模态框（Modal） -->
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h4 class="modal-title" id="myModalLabel">模态框（Modal）标题</h4>
                        </div>
                        <div class="modal-body">在这里添加一些文本</div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                            <button type="button" class="btn btn-primary">提交</button>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal -->
            </div>
        </div>
    </body>
    <!-- jQuery (Bootstrap 的 JavaScript 插件需要引入 jQuery) -->
    <script src="./bootstrap-3.4.1-dist/js/jquery-3.5.1.js"></script>
    <!-- 包括所有已编译的插件 -->
    <script src="./bootstrap-3.4.1-dist/js/bootstrap.js"></script>
</html>